﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace JuCheap.Core.Models.ViewModels
{
    public class JobPositionViewModel
    {
        public int Id { get; set; }
        [Required(ErrorMessage = Message.Required)]
        [Display(Name = "岗位类别")]
        public int PositionTypeId { get; set; }
        public string PositionType { get; set; }
        [Display(Name = "岗位名称")]
        [Required(ErrorMessage = Message.Required)]
        [MinLength(2, ErrorMessage = Message.MinLength)]
        [MaxLength(20, ErrorMessage = Message.MaxLength)]
        public string Name { get; set; }
    }

    public class JobPositionTypeViewModel
    {

        public int Id { get; set; }
        [Display(Name = "岗位类别")]
        [Required(ErrorMessage = Message.Required)]
        [MinLength(2, ErrorMessage = Message.MinLength)]
        [MaxLength(20, ErrorMessage = Message.MaxLength)]
        public string Name { get; set; }
    }

}
